home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3821 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  926 b 

  1. Path: nntp.atlanta.com!not-for-mail
  2. From: curts@compgen.com (Curt Smith)
  3. Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  4. Subject: Re: File descriptor equivalent of fflush?
  5. Followup-To: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  6. Date: 30 Jan 1996 13:03:59 GMT
  7. Organization: Internet Atlanta
  8. Message-ID: <4el4vv$phb@nntp.atlanta.com>
  9. References: <DLxHsx.7Ko@un.seqeb.gov.au>
  10. NNTP-Posting-Host: gw1.compgen.com
  11. X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
  12.  
  13. Anthony Lee (al012@svtstu.seqeb.gov.au) wrote:
  14. : Dear all,
  15. : I am trying to find an equivalent of fflush for file descriptors
  16. : in ULTRIX and OSF.  
  17.  
  18. To my knowledge, the only mechanism available to a task that opened
  19. an fd without O_SYNC, to assure the last bunch of write()s are on
  20. disk is:  fsync(fd).  See man 2 fsync.  Or sync() if all writes to
  21. a file system are to be written.
  22.  
  23. Curt Smith
  24. curts@compgen.com
  25.  
  26.